package day01;
import java.util.Scanner;
public class test5 {

	public static void main(String[] args) {
		int num = 3569;
		int qianWei = num/1000;
		int baiWei = num%1000/100;
		int shiWei = num%100/10;
		int geWei = num%10;
		System.out.println("请输入4位会员卡号:"+num);
		int a = qianWei;
		int b = baiWei;
		int c = shiWei;
		int d = geWei;
		int sum = a+b+c+d;
		System.out.println("会员卡号各位之和:"+sum);
		
		//boolean bl = false;
		//if(sum>=20) {
			
			//System.out.println("是幸运客户吗？"+true);
		//}	
		//else {
		//	System.out.println("是幸运客户吗？"+false);
		//}
        

		System.out.println("是幸运客户吗？"+(sum>20?true:false));
		
		
	}

}
